# Define variables
bin_name = bambox
libs = `pkg-config --cflags --libs gtkmm-2.4 libglademm-2.4`
bambox_objects = objects/interface.o objects/handy.o objects/record.o

# Build the main executable
bambox: clean init interface.o handy.o record.o
	gcc -o bin/$(bin_name) src/main.cpp $(bambox_objects) $(libs)

interface.o:
	gcc -o objects/interface.o -c src/interface.cpp $(libs)
	
record.o:
	gcc -o objects/record.o -c src/record.cpp

handy.o:
	gcc -o objects/handy.o -c src/handy.cpp

init:
	mkdir objects
	mkdir bin
	
clean:
	rm -rf objects
	rm -rf bin

# Alias Make all for geany building
all: bambox

# Rapid make
quick: clean init
	gcc -o bin/$(bin_name) src/main.cpp $(bambox_objects) $(libs)
